package edu.sctu.practice.class01.wujiayi.assing03.practice02;

/**
 * Created by acer1 on 2015/10/24.
 */
public class Cylinder extends Circle {
    public float height;
    public float cylinderarea;


    public float findCylinderArea() {
        circlearea = PI * r * r;
        cylinderarea = 2 * circlearea + height * circleperimeter;
        System.out.println("圆柱体的面积为" + cylinderarea);
        return cylinderarea;
    }
}
